package com.whut.monitor.service;

import com.whut.monitor.vo.PageFilter;
import com.whut.monitor.vo.Tree;
import com.whut.monitor.model.TimeMachiningEntity;
import com.whut.monitor.vo.TimeMachiningVo;

import java.util.Date;
import java.util.List;

/**
 * Created by CFlower on 2017/11/7.
 */
public interface ITimeMachiningService {
    List<TimeMachiningVo> dataGrid(TimeMachiningVo timeMachine, PageFilter ph);

    Long count(TimeMachiningVo timeMachiningVo, PageFilter ph);

    void add(TimeMachiningVo machine);

    void delete(Integer id);

    void edit(TimeMachiningVo machine);

    List<Tree> tree();

    List<TimeMachiningEntity> getMachiningByEquip(Integer equipmentId);

    List<TimeMachiningEntity> getDateByEquipMachine(Integer equipmentId,Integer machiningId);

    List<TimeMachiningEntity> getProcessByEquipMachDate(Integer equipmentId,Integer machiningId,Date machiningDate);

    List<TimeMachiningEntity> getAllData(Integer equipmentId);
}
